package com.woniu.clientServer.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 审批记录表
 * @TableName approval_record
 */
@TableName(value ="approval_record")
public class ApprovalRecord implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 审批流程code
     */
    private String approvalRecordCode;

    /**
     * 绑定的客户审批code
     */
    private String applicationCustomerCode;

    /**
     * 审批人code
     */
    private String approvalCode;

    /**
     * 审批人姓名
     */
    private String approvalName;

    /**
     * 所属权限1：总监；2：经理
     */
    private Integer status;

    /**
     * 审批结果0：待审批；1：通过；2：驳回
     */
    private Integer approvalResult;

    /**
     * 审批意见
     */
    private String approvalComments;

    /**
     * 审批步骤序号（第几步）
     */
    private Integer stepOrder;

    /**
     * 创建流程实例后保持不变的id
     */
    private String processInstanceId;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    private Date updatedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Integer getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 审批流程code
     */
    public String getApprovalRecordCode() {
        return approvalRecordCode;
    }

    /**
     * 审批流程code
     */
    public void setApprovalRecordCode(String approvalRecordCode) {
        this.approvalRecordCode = approvalRecordCode;
    }

    /**
     * 绑定的客户审批code
     */
    public String getApplicationCustomerCode() {
        return applicationCustomerCode;
    }

    /**
     * 绑定的客户审批code
     */
    public void setApplicationCustomerCode(String applicationCustomerCode) {
        this.applicationCustomerCode = applicationCustomerCode;
    }

    /**
     * 审批人code
     */
    public String getApprovalCode() {
        return approvalCode;
    }

    /**
     * 审批人code
     */
    public void setApprovalCode(String approvalCode) {
        this.approvalCode = approvalCode;
    }

    /**
     * 审批人姓名
     */
    public String getApprovalName() {
        return approvalName;
    }

    /**
     * 审批人姓名
     */
    public void setApprovalName(String approvalName) {
        this.approvalName = approvalName;
    }

    /**
     * 所属权限1：总监；2：经理
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 所属权限1：总监；2：经理
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 审批结果0：待审批；1：通过；2：驳回
     */
    public Integer getApprovalResult() {
        return approvalResult;
    }

    /**
     * 审批结果0：待审批；1：通过；2：驳回
     */
    public void setApprovalResult(Integer approvalResult) {
        this.approvalResult = approvalResult;
    }

    /**
     * 审批意见
     */
    public String getApprovalComments() {
        return approvalComments;
    }

    /**
     * 审批意见
     */
    public void setApprovalComments(String approvalComments) {
        this.approvalComments = approvalComments;
    }

    /**
     * 审批步骤序号（第几步）
     */
    public Integer getStepOrder() {
        return stepOrder;
    }

    /**
     * 审批步骤序号（第几步）
     */
    public void setStepOrder(Integer stepOrder) {
        this.stepOrder = stepOrder;
    }

    /**
     * 创建流程实例后保持不变的id
     */
    public String getProcessInstanceId() {
        return processInstanceId;
    }

    /**
     * 创建流程实例后保持不变的id
     */
    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    /**
     * 创建人
     */
    public String getCreatedBy() {
        return createdBy;
    }

    /**
     * 创建人
     */
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    /**
     * 创建时间
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * 创建时间
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 更新人
     */
    public String getUpdatedBy() {
        return updatedBy;
    }

    /**
     * 更新人
     */
    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    /**
     * 更新时间
     */
    public Date getUpdatedTime() {
        return updatedTime;
    }

    /**
     * 更新时间
     */
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ApprovalRecord other = (ApprovalRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getApprovalRecordCode() == null ? other.getApprovalRecordCode() == null : this.getApprovalRecordCode().equals(other.getApprovalRecordCode()))
            && (this.getApplicationCustomerCode() == null ? other.getApplicationCustomerCode() == null : this.getApplicationCustomerCode().equals(other.getApplicationCustomerCode()))
            && (this.getApprovalCode() == null ? other.getApprovalCode() == null : this.getApprovalCode().equals(other.getApprovalCode()))
            && (this.getApprovalName() == null ? other.getApprovalName() == null : this.getApprovalName().equals(other.getApprovalName()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getApprovalResult() == null ? other.getApprovalResult() == null : this.getApprovalResult().equals(other.getApprovalResult()))
            && (this.getApprovalComments() == null ? other.getApprovalComments() == null : this.getApprovalComments().equals(other.getApprovalComments()))
            && (this.getStepOrder() == null ? other.getStepOrder() == null : this.getStepOrder().equals(other.getStepOrder()))
            && (this.getProcessInstanceId() == null ? other.getProcessInstanceId() == null : this.getProcessInstanceId().equals(other.getProcessInstanceId()))
            && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
            && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
            && (this.getUpdatedBy() == null ? other.getUpdatedBy() == null : this.getUpdatedBy().equals(other.getUpdatedBy()))
            && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getApprovalRecordCode() == null) ? 0 : getApprovalRecordCode().hashCode());
        result = prime * result + ((getApplicationCustomerCode() == null) ? 0 : getApplicationCustomerCode().hashCode());
        result = prime * result + ((getApprovalCode() == null) ? 0 : getApprovalCode().hashCode());
        result = prime * result + ((getApprovalName() == null) ? 0 : getApprovalName().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getApprovalResult() == null) ? 0 : getApprovalResult().hashCode());
        result = prime * result + ((getApprovalComments() == null) ? 0 : getApprovalComments().hashCode());
        result = prime * result + ((getStepOrder() == null) ? 0 : getStepOrder().hashCode());
        result = prime * result + ((getProcessInstanceId() == null) ? 0 : getProcessInstanceId().hashCode());
        result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        result = prime * result + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode());
        result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", approvalRecordCode=").append(approvalRecordCode);
        sb.append(", applicationCustomerCode=").append(applicationCustomerCode);
        sb.append(", approvalCode=").append(approvalCode);
        sb.append(", approvalName=").append(approvalName);
        sb.append(", status=").append(status);
        sb.append(", approvalResult=").append(approvalResult);
        sb.append(", approvalComments=").append(approvalComments);
        sb.append(", stepOrder=").append(stepOrder);
        sb.append(", processInstanceId=").append(processInstanceId);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedBy=").append(updatedBy);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}